package com.amsp.oa.oademo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("t_file_review")
public class FileReview {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String fileName;
    private String fileNumber;
    private String fileVersion;
    private String applicationDepartment;
    private String compilationRevision;
    private String reviewType;
    private String mainPurpose;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:dd")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:dd")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private List<ReviewDepartment> reviewDepartments;
}